$(document).ready(function(){
	 $(".main").mousedown(function(e){
	    $(this).css("cursor","move");
	    var offset=$(this).offset();
	    var x=e.pageX-offset.left;
	    var y=e.pageY-offset.top;
	    $(document).bind("mousemove",function(ev){
	      $(".main").stop();
	      var _x = ev.pageX-x;//获得X轴方向移动的值
	      var _y = ev.pageY-y;//获得Y轴方向移动的值
	      $(".main").animate({left:_x+"px",top:_y+"px"},10);
	    });
	  });
	$(document).mouseup(function(){
	  $(".main").css("cursor","default");
	   $(this).unbind("mousemove");
	});
	
});

$(".meantdclass01").click(function(){
	$(".meantdclass01").children('img').attr("src","img/on-gzt.png");
	$(".meantdclass02").children('img').attr("src","img/glht.png");
	$("#xiamiantd").css("display","");
	$('#frame1').attr('src',$(this).attr("data"));
});

$(".meantdclass02").click(function(){
	$(".meantdclass01").children('img').attr("src","img/gzt.png");
	$(".meantdclass02").children('img').attr("src","img/on-glht.png");
	$("#xiamiantd").css("display","none");
	$('#frame1').attr('src',$(this).attr("data"));
});

$("#largeMain").click(function(){
	$(".main").css("width","1800");
	$(".main").css("height","1040");
});
